#ifndef QTVISIONTEST_RIGHTWIDGETUI_H
#define QTVISIONTEST_RIGHTWIDGETUI_H

#include <QWidget>
#include <QVBoxLayout>
#include <QButtonGroup>
#include <QSlider>
#include <QPushButton>

class RightWidgetUI : public QWidget {
Q_OBJECT
public:
    explicit RightWidgetUI(QWidget *parent = nullptr);
    QString getSelectedMode() const;  // 获取单选模式
private slots:
    void onSliderValueChanged(int value);// 拉条的滑动操作

public:// 公共控件，方便外部直接访问
    QPushButton *righbuttonDealD1;// 处理按钮
    QButtonGroup *buttonGroup;// 单选按钮组
    QSlider *slider1;// 拉条

private:
    QVBoxLayout *layout;

signals:
    void sliderActionRequested(const QString &mode, QSlider *slider, int value);

};
#endif //QTVISIONTEST_RIGHTWIDGETUI_H
